package com.netease.pris.activity;

import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.Toast;
import com.netease.l.b.a;
import com.netease.pris.a.i;
import com.netease.pris.activity.view.NPullToFreshContainer;
import com.netease.pris.activity.view.NeteaseListView;
import com.netease.pris.app.PrisApp;
import com.netease.pris.atom.ad;
import com.netease.pris.atom.g;
import com.netease.pris.atom.o;
import com.netease.pris.atom.u;
import com.netease.pris.b;
import com.netease.pris.protocol.d;
import com.netease.pris.v;
import java.util.LinkedList;

class ae extends b
{
  ae(SubsSourceActivity paramSubsSourceActivity)
  {
  }

  public void a()
  {
    SubsSourceActivity.p(this.a).setVisibility(8);
    SubsSourceActivity.f(this.a).setVisibility(0);
    SubsSourceActivity.g(this.a).setVisibility(8);
    SubsSourceActivity.a(this.a, false);
    SubsSourceActivity.b(this.a, false);
  }

  public void a(int paramInt1, int paramInt2, String paramString)
  {
    Integer localInteger = Integer.valueOf(paramInt1);
    if (SubsSourceActivity.q(this.a).contains(localInteger))
    {
      SubsSourceActivity.q(this.a).remove(localInteger);
      dc.a(SubsSourceActivity.l(this.a), paramInt2);
    }
  }

  public void a(int paramInt1, int paramInt2, String paramString, boolean paramBoolean)
  {
    SubsSourceActivity.p(this.a).setVisibility(8);
    Integer localInteger = Integer.valueOf(paramInt1);
    if (SubsSourceActivity.q(this.a).contains(localInteger))
    {
      SubsSourceActivity.q(this.a).remove(localInteger);
      switch (SubsSourceActivity.c(this.a).av())
      {
      default:
        SubsSourceActivity.f(this.a).setVisibility(0);
        SubsSourceActivity.g(this.a).setVisibility(8);
        SubsSourceActivity.d(this.a, false);
        SubsSourceActivity.a(this.a, false);
        SubsSourceActivity.b(this.a, false);
        if (SubsSourceActivity.t(this.a).getVisibility() != 0)
          break;
        switch (paramInt2)
        {
        default:
          dc.a(SubsSourceActivity.l(this.a), paramInt2);
        case 10002:
        case 10003:
        }
      case 256:
      case 1024:
      case 512:
      case 2048:
      }
    }
    while (true)
    {
      return;
      if (paramBoolean)
        break;
      SubsSourceActivity.e(this.a).a(null);
      break;
      if (paramBoolean)
        break;
      SubsSourceActivity.d(this.a).a(null);
      break;
      SubsSourceActivity.a(this.a, false);
      SubsSourceActivity.b(this.a, false);
      SubsSourceActivity.c(this.a, true);
      continue;
      dc.a(SubsSourceActivity.l(this.a), paramInt2);
    }
  }

  public void a(int paramInt, d paramd)
  {
    Integer localInteger = Integer.valueOf(paramInt);
    if (SubsSourceActivity.q(this.a).contains(localInteger))
    {
      SubsSourceActivity.q(this.a).remove(localInteger);
      Toast.makeText(SubsSourceActivity.l(this.a), 2131361946, 0).show();
    }
  }

  public void a(int paramInt, d paramd, boolean paramBoolean)
  {
    SubsSourceActivity.p(this.a).setVisibility(8);
    if (SubsSourceActivity.q(this.a).contains(new Integer(paramInt)))
    {
      SubsSourceActivity.q(this.a).remove(new Integer(paramInt));
      SubsSourceActivity.f(this.a).setVisibility(0);
      SubsSourceActivity.g(this.a).setVisibility(8);
      SubsSourceActivity.a(this.a, false);
      SubsSourceActivity.b(this.a, false);
      SubsSourceActivity.d(this.a, false);
      if (paramd != null);
    }
    else
    {
      return;
    }
    String str3;
    u localu;
    int i;
    if ((!paramBoolean) && (paramd.h.size() > 0))
    {
      str3 = ((u)paramd.h.getFirst()).V();
      if (str3 != null)
      {
        localu = SubsSourceActivity.c(this.a);
        String str4 = localu.d();
        if (TextUtils.isEmpty(str4))
          break label432;
        if (!str4.equals(str3))
          break label585;
        i = 0;
      }
    }
    while (true)
    {
      label176: if (i != 0)
        v.a().c(localu);
      if ((!paramBoolean) && (paramd.h.size() == 0))
      {
        SubsSourceActivity.a(this.a, Toast.makeText(SubsSourceActivity.l(this.a), 2131361926, 1));
        SubsSourceActivity.a(this.a).show();
      }
      if (paramBoolean)
      {
        if ((SubsSourceActivity.r(this.a) != null) && (SubsSourceActivity.r(this.a).h != null))
        {
          i.a(paramd.h, SubsSourceActivity.r(this.a).h);
          SubsSourceActivity.r(this.a).h.addAll(paramd.h);
        }
        label297: SubsSourceActivity.a(this.a, paramd, paramBoolean);
        switch (SubsSourceActivity.c(this.a).av())
        {
        default:
        case 256:
        case 1024:
        case 512:
        case 2048:
        }
      }
      String str2;
      while (true)
      {
        String str1 = SubsSourceActivity.j(this.a);
        SubsSourceActivity.a(this.a, null);
        if (paramd.g == null)
          break;
        str2 = paramd.g.b(g.i);
        if (TextUtils.isEmpty(str2))
          break;
        if (!str2.equals(str1))
          break label572;
        if (paramBoolean)
          break;
        SubsSourceActivity.a(this.a, str2);
        break;
        label432: if ((SubsSourceActivity.r(this.a) == null) || (SubsSourceActivity.r(this.a).h.size() <= 0) || (!str3.equals(((u)SubsSourceActivity.r(this.a).h.getFirst()).V())))
          break label585;
        i = 0;
        break label176;
        PrisApp.a().b(paramd);
        SubsSourceActivity.a(this.a, paramd);
        break label297;
        if (paramBoolean)
          continue;
        SubsSourceActivity.e(this.a).a(a.a(paramd.l(), SubsSourceActivity.s(this.a)));
        continue;
        if (paramBoolean)
          continue;
        SubsSourceActivity.d(this.a).a(a.a(paramd.l(), SubsSourceActivity.s(this.a)));
      }
      label572: SubsSourceActivity.a(this.a, str2);
      break;
      label585: i = 1;
    }
  }

  public void b(int paramInt, d paramd)
  {
    if (paramd == null);
    while (true)
    {
      return;
      if ((paramd.j != null) && (paramd.j.size() > 0) && (((o)paramd.j.getFirst()).a() != null) && (SubsSourceActivity.c(this.a) != null) && (((o)paramd.j.getFirst()).a().equals(SubsSourceActivity.c(this.a).V())))
      {
        SubsSourceActivity.a(this.a, (u)paramd.h.getFirst());
        continue;
      }
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.ae
 * JD-Core Version:    0.6.0
 */